package com.coco.live.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ItemVo {

    private Long id;

    private String title;

    private Integer realSales;

    private Integer fakeSales;

    private Integer inventory;

    private Integer sort;

    private String status;

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updateTime;

    private String isDefault;

    private Long goodsId;

    private BigDecimal price;

    private Double bulk;

    /**
     * 商品成本价
     */
    private BigDecimal costPrice;

    private Integer integral;

    private Integer depotNum;

    private Double weight;

    /**
     *  选择单规格/多规格
     */
    private Integer isSingle;

    private String images;

    /**
     * 多规格 id 对应一个商品
     */
    private String optionIds;

    /**
     *
     */
    private String optionIdList;
    /**
     * 多规格图片设置
     */
    private String image;

    /**
     * 判断是否是批量添加
     */
    private Integer isBatch;

    /**
     * 分类查询字段
     */
    private Integer typeId;

    private String typeName;

    private String gname;

}
